From 04e1b5537e5c03e7724733f3cc9dae8a0d7624b0 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 29 Dec 2007 19:26:06 +0000 Subject: [PATCH] (custom-add-parent-links): Fill the "Parent documentation" text. --- lisp/cus-edit.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index 40ff46f1675..7fccf0c6130 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el @@ -1412,7 +1412,7 @@ that are not customizable options, as well as faces and groups (defun customize-apropos-options (regexp &optional arg) "Customize all loaded customizable options matching REGEXP. With prefix arg, include variables that are not customizable options -\(but we recommend using `apropos-variable' instead)." +\(but it is better to use `apropos-variable' if you want to find those)." (interactive "sCustomize options (regexp): \nP") (customize-apropos regexp (or arg 'options))) @@ -2341,6 +2341,8 @@ If INITIAL-STRING is non-nil, use that rather than \"Parent groups:\"." (get (car parents) 'custom-links)))) (many (> (length links) 2))) (when links + (let ((pt (point)) + (left-margin (+ left-margin 2))) (insert "\nParent documentation: ") (while links (push (widget-create-child-and-convert @@ -2357,7 +2359,9 @@ If INITIAL-STRING is non-nil, use that rather than \"Parent groups:\"." (insert ", and ") (insert " and "))) (t - (insert ", "))))))) + (insert ", ")))) + (fill-region-as-paragraph pt (point)) + (delete-to-left-margin (1+ pt) (+ pt 2)))))) (if parents (insert "\n") (delete-region start (point))) -- 2.30.2